package com.example.exercise.sys.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.exercise.sys.vo.SysMenuVO;
import com.example.exercise.sys.dao.entity.SysMenuEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 菜单表
*/
public interface SysMenuDAO {

    List<SysMenuEntity> findByWhere(Page<?> page, @Param("param") SysMenuVO sysMenuVO);

    SysMenuEntity findByKey(@Param("param") SysMenuVO sysMenuVO);

    int insert(@Param("param") SysMenuEntity sysMenuEntity);

    int updateByKey(@Param("param") SysMenuEntity sysMenuEntity);

    int deleteByKey(@Param("param") SysMenuVO sysMenuVO);

}